package com.beg.cant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.beg.cant.dto.PageRequest;
import com.beg.cant.dto.PageResponse;
import com.beg.cant.entity.Post;
import com.beg.cant.vo.PostVO;

import java.io.IOException;
import java.util.List;

public interface PostService extends IService<Post> {
    PostVO getPostsById(Long id);

    PageResponse<PostVO> getPostslist(PageRequest pageRequest);

    List<PostVO> getUserPostsById(Long id);

    void savePostsById(Post post) throws IOException;
}
